<?php
/**
 * Created by PhpStorm.
 * User: zd
 * Date: 2018/9/20
 * Time: 11:14
 */

namespace app\api\model;



class OrderProduct extends BaseModel
{
        protected $hidden=['delete_time','update_time'];

    /**
     * 根据orderid获取商品id
     * @param $orderId
     * @return false|\PDOStatement|string|\think\Collection
     */
        public static function getOrderProduct($orderId){
            $orderProduct =  self::where('order_id','=',$orderId)->select();
            return $orderProduct;
        }

}